﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Site_Admin.master" AutoEventWireup="true" CodeFile="Hocsinh.aspx.cs" Inherits="Admin_Hocsinh" %>

<%@ Register src="../Controls/admin/ucLeftmenu_nd.ascx" tagname="ucLeftmenu_nd" tagprefix="uc1" %>
<%@ Register src="../Controls/admin/ucMenu_nd.ascx" tagname="ucMenu_nd" tagprefix="uc2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Menu" Runat="Server">

    <uc2:ucMenu_nd ID="ucMenu_nd1" runat="server" />

    </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CP_left_menu" Runat="Server">
    <uc1:ucLeftmenu_nd ID="ucLeftmenu_nd1" runat="server" />
    </asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ad_main" Runat="Server">
    <%--<div class="breadcrumb">
        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="Trangchu.aspx">Trang chủ</asp:HyperLink>
        <span class="active_breadcrumb">
            <asp:Label ID="lienKet" runat="server" Text="Label"></asp:Label>
        </span>
    </div>--%>
            
    <div class="nav_tabs">
        <ul>
            <li class="active_tabs">
                <asp:HyperLink ID="linkQLGV" NavigateUrl="~/Admin/Hocsinh.aspx" runat="server">Quản Lý Học Sinh</asp:HyperLink>
            </li>
            <li >
                <asp:HyperLink ID="linkthemgv"  NavigateUrl="~/Admin/Themhocsinh.aspx" runat="server">Thêm Học Sinh</asp:HyperLink>
            </li>
            <li >
                <asp:HyperLink ID="linktimgv"  NavigateUrl="~/Admin/Timhocsinh.aspx" runat="server">Tìm Học Sinh</asp:HyperLink>
            </li>
        </ul>
        <div class="tab_description">Quản Lý Giáo Viên.</div>
    </div>
    <div class="border_wrapper">
        <div class="title">Danh Sách Giáo Viên</div>
        <asp:GridView ID="gvgiaovien" runat="server" AllowPaging="True" AutoGenerateColumns="False"
         CssClass="general" PageSize="5" Width="100%" OnPageIndexChanging="gvgiaovien_PageIndexChanging"
          RowDataBound="gvgiaovien_RowDataBound" >
            <Columns>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:Button ID="btnxoagv" runat="server" Text="Xóa" onclick="btnxoagv_Click" />
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:CheckBox ID="chkChon" runat="server" />
                    </ItemTemplate>
                    
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:BoundField DataField="id" HeaderText="ID">
                <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:TemplateField HeaderText="Tài Khoản">
                    <ItemTemplate>
                        <asp:HyperLink ID="giaovien" runat="server" 
                            NavigateUrl='<%# "Xemhocsinh.aspx?cid="+Eval("id")+"&id="+Eval("id") %>' 
                            Text='<%# Eval("childrenid") %>'></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="fullname" HeaderText="Tên Học Sinh">
                <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="gentle" HeaderText="Giới Tính">
                <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <%--<asp:BoundField DataField="birthday"  HeaderText="Ngày Sinh">
                <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>--%>
                <asp:BoundField DataField="address" HeaderText="Địa Chỉ">
                <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                 <%--<asp:BoundField DataField="phone" HeaderText="SĐT">
                <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>--%>

                <asp:TemplateField HeaderText="Trạng Thái">
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%# CheckTrangThai(Eval("status")) %>'></asp:Label>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Cập Nhật">
                    <ItemTemplate>
                        <asp:HyperLink ID="HyperLink2" runat="server" ImageUrl="~/images/admin/edit.png" NavigateUrl='<%# "Suahocsinh.aspx?cid="+Eval("id")+"&id="+Eval("id") %>'></asp:HyperLink>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
            </Columns>
            
        </asp:GridView>
    </div>
</asp:Content>
